  curCount = {$is_no_send_sms|default:0};
  {if $is_no_send_sms}
  SetRemainTime();
  var InterValObj = setInterval('SetRemainTime()', 1000);
  {/if}
  function SetRemainTime(){
    if(curCount == 0){
      $(".send_sms").val('点击重新发送').removeClass('no_send');
      clearInterval(InterValObj)
    }else{
      curCount --;
      $(".send_sms").val('请在'+curCount+'秒内输入').addClass('no_send');
    }
  }

  /* 发送手机验证码 */
  function send_sms(){
    var mobile = $('#mobile').val();
    check_mobile(mobile);
    if(mobile.length != 11) {
      Ctf('请检查并输入正确的手机号码，再进行验证！谢谢合作！','return false;');
      return false;
    }
    if(curCount != 0) {
      Ctf('未收到？请在'+curCount+'秒后再重新验证！谢谢合作！','return false;');
      return false;
    }
    $.ajax({url:'alone.php?act=send_sms&',type:"POST",data:{mobile:mobile},dataType:"json",success:function(result){
      if(result.msg == 'OK'){
        curCount = 60;
        SetRemainTime();
        var InterValObj = setInterval('SetRemainTime()', 1000);
      }else{
        Ctf('手机号码错误，请重新输入后再进行验证！','return false;');
        curCount = 60;
        SetRemainTime();
        var InterValObj = setInterval('SetRemainTime()', 1000);
      }
    }});
  }
